package com.jk.smartelderlycare.service;

import com.jk.smartelderlycare.dto.SysCoupon;
import com.jk.smartelderlycare.dto.SysHomestay;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/28 19:53
 * @Version v1.0
 */
public interface SysCouponService {

    /**
     * @description: 优惠劵后端分页查询
     * @param: [sysCoupon, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysCoupon>
     * @author hhk
     * @date: 2024/11/28 19:43
     */

    public PagedResponse<SysCoupon> findSysCouponPaginationList( SysCoupon sysCoupon, Integer pageNum,  Integer pageSize);
    /**
     * @description: 新增优惠劵
     * @param: [sysCoupon]
     * @return: void
     * @author hhk
     * @date: 2024/11/28 19:44
     */

    public void addSysCoupon(SysCoupon sysCoupon);
    /**
     * @description: 根据id删除一条数据
     * @param: [couponId]
     * @return: void
     * @author hhk
     * @date: 2024/11/28 19:46
     */

    public  void deleteSysCouponById( Long couponId);
    /**
     * @description: 根据id回显一条数据
     * @param: [couponId]
     * @return: void
     * @author hhk
     * @date: 2024/11/28 19:47
     */

    public SysCoupon findSysCouponById(Long couponId);
    /**
     * @description:修改优惠劵
     * @param: [sysCoupon]
     * @return: void
     * @author hhk
     * @date: 2024/11/28 19:48
     */

    public void  updataSysCoupon( SysCoupon sysCoupon);

    /**
     * @description: 民宿信息
     * @param: []
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysHomestay>
     * @author hhk
     * @date: 2024/11/29 16:28
     */

    public List<SysHomestay> findHomestayList();
}
